// JavaScript Document
function Usuario() {
	this.tipoUsuario = {HTMLID:'LoginForm[typeLogin]'};
	this.tipoDocumento = {HTMLID:'LoginForm_typeDocument'};
	this.nickName = {HTMLID:'LoginForm_username'};
}

Usuario.prototype.cambiarFormularioLogin = function()
{
	var per = this;
	
	tipoUsuario = $('input:radio[name="'+per.tipoUsuario.HTMLID+'"]:checked').val();
	
	if(tipoUsuario == 'Alumno')
	{
		$('#'+per.tipoDocumento.HTMLID).show();
		$('#'+per.nickName.HTMLID).css('cssText','width :283px !important');
	}
	else
	{
		$('#'+per.tipoDocumento.HTMLID).hide();
		$('#'+per.nickName.HTMLID).css('cssText','width :353px !important');
	}
}

Usuario.prototype.setLoginEvent = function()
{
	var per = this;
	$('input:radio[name="'+per.tipoUsuario.HTMLID+'"]').click(function() {per.cambiarFormularioLogin()});
	//per.cambiarFormularioLogin();
	
}